package org.chemodansama.fifteen;

import org.chemodansama.engine.math.NpVec3;

final class Chip {
    public final static float[] CENTER = {0.5f, -0.5f, 0.125f, 1};
    public final static float SIZE = NpVec3.len(CENTER);
    public final static float OFFSET = 2 * CENTER[0];
    
    int mNum = 0;
    
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        
        if (!(o instanceof Chip)) {
            return false;
        }
        
        Chip ch = (Chip) o;
        
        return ch.mNum == mNum;
    }
    
    @Override
    public int hashCode() {
        return mNum;
    }
}